package com.dhp.campus.Common;

public class ResultUtils {
    public static <T>Result success(T data){
        return new Result<>(data , 0);
    }

    public static Result error(ErrorCode errorCode){
        return new Result(errorCode);
    }

    public static Result error(Integer code , String message , String description){
        return new Result(code , message , description);
    }
}
